package com.example.module_hp_zao_yin.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.module_hp_zao_yin.R;
import com.example.module_hp_zao_yin.entity.HpAudioEntity;

public class HpZaoYinListAdapter extends BaseQuickAdapter<HpAudioEntity, BaseViewHolder> {

    public HpZaoYinListAdapter() {
        super(R.layout.item_hp_zao_yin_list);
    }

    @Override
    protected void convert(BaseViewHolder helper, HpAudioEntity item) {
        helper.setText(R.id.item_chunk_date, item.getDate());
        helper.setText(R.id.item_chunk_time, item.getTime());
        helper.setText(R.id.item_chunk_min_num, "最小:"+item.getMinNum());
        helper.setText(R.id.item_chunk_max_num, "最大:"+item.getMaxNum());
        helper.setText(R.id.item_chunk_av_num, "平均:"+item.getAvNum());
    }
}
